package com.leji.song.mainPage;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.widget.Button;
import com.leji.song.R;

/**
 * Created by colin.ding on 2014/6/17.
 */
public class SubmitOrderTimeDialog {
    protected Button ok;
    protected Button cancle;

    protected Dialog dialog;

    public SubmitOrderTimeDialog(Context context) {
        dialog = new Dialog(context, R.style.MyCustomDialog);
//        dialog.setContentView(R.layout.dialog_if_begin_do);
//
//        ok = (Button) dialog.findViewById(R.id.ok);
//        cancle = (Button) dialog.findViewById(R.id.cancle);

        cancle.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                dialog.dismiss();
            }
        });

        ok.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                dialog.dismiss();
            }
        });
    }


    public void show(){
        dialog.show();
    }
}